import type { MenuMixedOptions } from './helper'

export const routeRecordRaw: MenuMixedOptions[] = [
  {
    path: 'home',
    name: 'home',
    icon: 'mage:dashboard-chart',
    label: '首页',
    meta: {
      componentName: 'Home',
      pinned: true,
      showTab: true,

    },
    component: 'home',
  },
  {
    path: 'iconify',
    name: 'iconify',
    icon: 'line-md:iconify2-static',
    label: 'Iconify 图标',
    isTool: true,
    meta: {
      componentName: 'iconify',
      title: 'Iconify 图标',
      showTab: true,
      keepAlive: true,
      author: '大有',
      description: '快速查询和收藏 iconify 图标，支持搜索、收藏、复制等功能。',
    },
    component: 'icon/iconify',
  },
  {
    path: 'converter',
    redirect: 'converter/base64-body',
    name: 'converter',
    icon: 'icon-park-outline:converging-gateway',
    label: '转换器',
    children: [
      {
        path: 'base64-body',
        name: 'converterBase64Body',
        icon: 'basil:image-outline',
        label: 'Base64内容转换',
        isTool: true,
        meta: {
          componentName: 'converter/base64-body',
          title: 'Base64内容转换',
          showTab: true,
          keepAlive: true,
          author: '大有',
          description: '将 Base64 编码的内容转换为图片或文件，或将图片或文件转换为 Base64 编码。',
        },
        component: 'converter/base64-body',
      },]
  },
  {
    path: 'resource',
    redirect: 'resource/image',
    name: 'resource',
    icon: 'carbon:group-resource',
    label: '素材资源',
    children: [
      {
        path: 'image',
        name: 'resourceImage',
        icon: 'bi:images',
        label: '图片资源',
        isTool: true,
        meta: {
          componentName: 'resource/image',
          title: '图片',
          showTab: true,
          keepAlive: true,
          author: '大有',
          description: '获得指定尺寸的远程图片资源，免得查找图片资源的麻烦。',
        },
        component: 'resource/image',
      },]
  },
  {
    path: '/about',
    key: 'about',
    name: 'about',
    icon: 'ph:info',
    label: '关于项目',
    component: 'about/index',
    meta: {
      showTab: true,
    },
  },
]
